package com.wangdao.mall.service;

import com.wangdao.mall.model.*;

import java.util.List;
import java.util.Map;

/**
 * @Author:HaiyangTian
 * @Description:
 * @Date: Created in 20:00 2020/5/1
 * @Modified By:
 */
public interface GoodsService {

    List<Type> getType();

    List<Goods> getGoodsByType(String typeId);

    void addGoods(GoodsParam goodsParam);

    int addType(Type type);

    int deleteType(String typeId);

    void deleteGoods(String id);

    Map<String, Object> getGoodsInfo(String id);

    int addSpec(SpecId spec);

    int deleteSpec(SpecId spec);

    void updateGoods(GoodsParam goodsParam);

    List<Message> getNoReplyMsg();

    List<ReplyMessage> getRepliedMsg();

    void reply(ReplyMessage replyMessage);

    ClientGoods getClientGoodsInfo(String id);

    List<ClientMessage> getGoodsMsg(String id);

    int askGoodsMsg(AskMessage message);

}
